/*
 * Main.java
 *
 * Created on 18 de marzo de 2008, 14:22
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package ejercicio2;

import ventana.Ventana;
import widget.Boton;
import widget.CajaTexto;

/**
 *
 * @author notebook
 */
public class Main {

    private Ventana v;

    private Boton b;
    
    private int i=0;

    private CajaTexto ct;
    
    /** Creates a new instance of Main */
    public Main() {
       v= new Ventana("Ventana de entrada al sistema "+i, .5);
       b=new Boton("prueba",10,10,120,25, this, "prueba");
       v.add(b);
       ct=new CajaTexto("rotulo",10,60);
       v.add(ct);
        
    }
    public void prueba(){
        v.setTitle(ct.get()+(++i));
        
    }
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        new Main();
        // TODO code application logic here
    }
    
}
